fixing some issues with isDivisable