When you share your idea with your boss the next time and they agree to push forward your thoughts, make sure you raise a concern about credit sharing. The best technique is to be precautious before you undergo the same problem again.
Read this post on chakreview.com