Error was shown regarding catch statement. removed it