changed name of major function