removed dependecie on astropy